<?php

namespace App\Services;


class WechatService extends BaseService
{
    protected $app;

    public function __construct()
    {
        $this->app = app('wechat.mini_program');
    }

    /**
     * Notes: 获取用户的session信息
     * User: lstink
     * Date: 2021/3/1
     * Time: 5:10 下午
     * @param string $code
     * @return mixed
     */
    public function getSessionInfo(string $code)
    {
        return $this->app->auth->session($code);
    }


}
